﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using InnovTech.Data;

namespace InnovTech.Net
{
    public class ConnectionConfig : ConfigBase, IConnectionConfig, IConfig
    {
        public static readonly object AccountNameKey = "the key of the account name";
        public static readonly object AccountPasswordKey = "the key of the account password";
        public static readonly object HostUriKey = "the key of the host uri";
        public static readonly object ConnectionStringKey = "the key of the connection string";

        public object AccountName
        {
            get
            {
                return GetValue(ConnectionConfig.AccountNameKey);
            }
            set
            {
                SetValue(AccountNameKey, value);
            }
        }

        public object AccountPassword
        {
            get
            {
                return GetValue(ConnectionConfig.AccountPasswordKey);
            }
            set
            {
                SetValue(AccountPasswordKey, value);
            }
        }

        public string HostUri
        {
            get
            {
                return GetValue(ConnectionConfig.HostUriKey) as string;
            }
            set
            {
                SetValue(HostUriKey, value);
            }
        }

        public string ConnectionString
        {
            get
            {
                return GetValue(ConnectionConfig.ConnectionStringKey) as string;
            }
            set
            {
                SetValue(ConnectionStringKey, value);
            }
        }
    }

}
